﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN">
<head>
<%@ include file="/include/include.jsp" %>
</head>

<body>
	
	<%@ include file="/include/header.jsp" %>

	<%@ include file="/include/menu.jsp" %>
	
			
	<div id="mainContent">
		<h2><a href="${ctx}/${menu.url}">${menu.description}</a>&nbsp;-&nbsp;<a href="${ctx}/${empty currViewBarSubMenu_ ? submenu.url : currViewBarSubMenu_.url}">${empty currViewBarSubMenu_ ? submenu.description : currViewBarSubMenu_.description}</a></h2>
		<div class="tool-bar">				
			<a href="${ctx}/warehouse/exchange/${id}/mail" title="发送邮件">发送邮件</a>
					<a href="${ctx}/warehouse/exchange/${id}/export" >导出${submenu.description}</a>
		</div>
		<h2>来源仓储编码&nbsp;-&nbsp;<a href="${ctx}/warehouse/exchange/${inventoryExchange.sourceWarehouse.id}/inventory" title="仓储${inventoryExchange.sourceWarehouse.name}-调入调出记录-查看">${inventoryExchange.sourceWarehouse.code }</a>  &nbsp;&nbsp; &nbsp;&nbsp; 来源仓储名称&nbsp;-&nbsp;  <a href="${ctx}/warehouse/exchange/${inventoryExchange.sourceWarehouse.id}/inventory" title="仓储${inventoryExchange.sourceWarehouse.name}-调入调出记录-查看">${inventoryExchange.sourceWarehouse.name }</a></h2>
		<div class="grid-list">
			<table class="grid" cellspacing="0">
				<thead>
					<tr>
						<td>目标仓储编码</td>
						<td>目标仓储名称</td>
						<td>状态</td>
						<td>产品编码</td>
						<td>产品名称</td>
						<td>数量 </td>
						<td>操作日期</td>
						<td>操作</td>
					</tr>
				</thead>
				<tbody>
					<c:forEach var="inventoryExchange_" items="${inventoryExchanges}">
						<tr onmouseover="this.style.backgroundColor= '#A0CFEC'" onmouseout="this.style.backgroundColor= '#ffffff'">
							<td>${inventoryExchange_.indentWarehouse.code }</td>
							<td>${inventoryExchange_.indentWarehouse.name }</td>
							<td>${inventoryExchange_.operationDisplay }</td>
							<td>${inventoryExchange_.product.productCode }</td>
							<td>${inventoryExchange_.product.productName }</td>
							<td>${inventoryExchange_.amount }</td>
							<td> <fmt:formatDate value="${inventoryExchange.operationDate }" pattern="yyyy-MM-dd"/>	</td>
							<td class="tool-bar-tr">
								<a href="javascript:doDelete('您确实要删除该记录吗？删除后将不能恢复,请确认!','/ancr/warehouse/exchange/${inventoryExchange.id}/delete')"> <img src="${ctx}/static/images/delete.png" alt="" border="0" title="删除调入调出记录"/></a>
							</td>
						</tr>
					</c:forEach>
				</tbody>
			</table>
			<t:page action="${ctx}/warehouse/exchange/list" />
		</div>
	</div>
	
	<%@ include file="/include/script.jsp" %>
	
</body>

</html> 